{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([1.24430830e-11, 4.11943176e-07, 8.82095770e-04, ...,\n",
       "       3.83479999e-05, 2.04162869e-06, 4.03100929e-05])"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import numpy as np\n",
    "\n",
    "sst = np.random.rand(360, 180).astype(np.float32)\n",
    "\n",
    "# TypeError: 'dtype' is an invalid keyword argument for this function\n",
    "#sst.tofile('f64800.bin', dtype='>f4') \n",
    "\n",
    "sst.tofile('f64800.bin') \n",
    "\n",
    "# TypeError: 'dtype' is an invalid keyword argument for this function\n",
    "#sst_copy = np.fromfile('f64800.bin', dtype='>f4')\n",
    "sst_copy = np.fromfile('f64800.bin')\n",
    "\n",
    "sst_copy"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
